<script>
	export default {
		onLaunch: function(options) {
			console.log('App Launch', options);
			setTimeout(() => {
				if (options.query && options.query.scene) {
					uni.setStorageSync('scene', options.query.scene)
				}
				// #ifdef MP-WEIXIN
				let page = wx.getLaunchOptionsSync()
				console.log(page, "page")
				if (page.query && page.query.scene) {
					uni.setStorageSync('scene', page.query.scene)
				}
				// #endif
			}, 1000)
		},
		onShow: function() {
			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide');
		}
	};
</script>

<style>
	/*每个页面公共css */
	page {
		background: #f5f5f5;
	}

	@import 'https://unpkg.com/element-ui/lib/theme-chalk/index.css';
</style>
